package com.gtja.beoms.xxljob.dto;

/**
 * <p>
 *添加Job
 * </p>
 *
 * @author CP_wangzhi
 * @since 2021/10/21
 */

public class AddXxlJob {
    /**
     * 执行器主键ID
     */
    private int jobGroup;
    /**
     * job描述
     */
    private String jobDesc;
    /**
     * 负责人
     */
    private String author;
    /**
     * 调度类型
     */
    private String scheduleType;
    /**
     * 调度配置，值含义取决于调度类型
     */
    private String scheduleConf;
    /**
     * 执行器，任务Handler名称
     */
    private String executorHandler;
    /**
     * 任务参数
     */
    private String executorParam = "";

    public AddXxlJob() {
    }

    public AddXxlJob(int jobGroup, String jobDesc, String author, String scheduleType, String scheduleConf, String executorHandler, String executorParam) {
        this.jobGroup = jobGroup;
        this.jobDesc = jobDesc;
        this.author = author;
        this.scheduleType = scheduleType;
        this.scheduleConf = scheduleConf;
        this.executorHandler = executorHandler;
        this.executorParam = executorParam;
    }

    public int getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(int jobGroup) {
        this.jobGroup = jobGroup;
    }

    public String getJobDesc() {
        return jobDesc;
    }

    public void setJobDesc(String jobDesc) {
        this.jobDesc = jobDesc;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getScheduleType() {
        return scheduleType;
    }

    public void setScheduleType(String scheduleType) {
        this.scheduleType = scheduleType;
    }

    public String getScheduleConf() {
        return scheduleConf;
    }

    public void setScheduleConf(String scheduleConf) {
        this.scheduleConf = scheduleConf;
    }

    public String getExecutorHandler() {
        return executorHandler;
    }

    public void setExecutorHandler(String executorHandler) {
        this.executorHandler = executorHandler;
    }

    public String getExecutorParam() {
        return executorParam;
    }

    public void setExecutorParam(String executorParam) {
        this.executorParam = executorParam;
    }

    @Override
    public String toString() {
        return "AddXxlJob{" +
                "jobGroup=" + jobGroup +
                ", jobDesc='" + jobDesc + '\'' +
                ", author='" + author + '\'' +
                ", scheduleType='" + scheduleType + '\'' +
                ", scheduleConf='" + scheduleConf + '\'' +
                ", executorHandler='" + executorHandler + '\'' +
                ", executorParam='" + executorParam + '\'' +
                '}';
    }
}
